/**
 * 
 */
package ictius.estructuras.implement;

/**
 * @author tadeo
 *
 */
public final class Nodulo {
	Nodulo next;
	// data carried by this node.
	// could be of any type you need.
	Object data;
	

	// Node constructor
	public Nodulo(Object _data)
	{
		next = null;
		data = _data;
	}
	
	// another Node constructor if we want to
	// specify the node to point to.
	public Nodulo(Object _data, Nodulo _next)
	{
		next = _next;
		data = _data;
	}
	
	// these methods should be self-explanatory
	public Object getData()
	{
		return data;
	}
	
	public void setData(Object _data)
	{
		data = _data;
	}
	
	public Nodulo getNext()
	{
		return next;
	}
	
	public void setNext(Nodulo _next)
	{
		next = _next;
	}
}
